<template>
  <div class="container">
    <div class="content">
      <div class="item">
        <div class="left">
          <div class="title">2023美拍绵阳</div>
          <div class="des">
            快来秀出你眼中的绵阳，2023美拍绵阳摄影大赛开始啦！
          </div>
          <div class="tip">详情...</div>
        </div>
        <div class="right">
          <div class="btn">我要报名</div>
        </div>
      </div>
    </div>
    <div class="history">
      <div class="title">往期活动</div>
      <div class="item" v-for="v in 2" :key="v">
        <div class="left">
          <div class="left-img">
            <img src="@/assets/pics/1.png" alt="" />
          </div>
          <div class="right-img">
            <div class="top">
              <img src="@/assets/pics/2.png" alt="" />
            </div>
            <div class="bottom">
              <img src="@/assets/pics/3.png" alt="" />
              <div class="mask">
                查看所有照片 <el-icon style="vertical:middle"><DArrowRight /></el-icon>
              </div>
            </div>
          </div>
        </div>
        <div class="right">
          <div class="title">2022美拍绵阳</div>
          <div class="desc">1780人参与活动，参评照片3265张</div>
          <div class="btn">活动已结束</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { onMounted, onUnmounted, reactive, ref, toRefs } from "vue";
import { useRoute, useRouter } from "vue-router";
export default {
  name: "",
  components: {},
  setup(props, ctx) {
    return {};
  },
};
</script>

<style scoped lang="scss">
.container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;

  .content {
    .item {
      width: 50%;
      margin: 0 auto;
      border-radius: 20px;
      border: 1px solid rgba(0, 00, 00, 0.3);
      padding: 30px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .left {
        color: #000;
        .title {
          font-size: 30px;
          font-weight: 600;
        }
        .desc {
          font-size: 14px;
        }
        .tip {
          margin-top: 30px;
          font-size: 20px;
          font-weight: 600;
        }
      }
      .right {
        .btn {
          cursor: pointer;
          padding: 8px 16px;
          // font-weight: 600;
          text-align: center;
          letter-spacing: 6px;
          font-size: 30px;
          color: #fff;
          background: #000;
          border-radius: 10px;
          &:hover {
            background: rgba(0, 0, 0, 0.8);
          }
        }
      }
    }
  }
  .history {
    flex: 1;
    background: var(--theme-color);
    padding: 50px 200px 100px;
    margin-top: 50px;
    .title {
      text-align: center;
      color: #000;
      font-weight: 600;
      font-size: 30px;
    }
    .item {
      //   margin-top: 50px;
      margin: 50px auto 0;
      width: 50%;
      display: flex;
      align-items: center;
      height: 300px;
      > div {
        flex: 1;
        height: 100%;
      }
      .left {
        display: flex;
        > div {
          flex: 1;
        }
        .left-img {
          margin-right: 10px;
          // width:100%;
          height: 100%;
          img {
            height: 100%;
            width: 100%;
            object-fit: cover;
          }
        }
        .right-img {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          > div {
            flex: 1;
            img {
              height: 100%;
              width: 100%;
              object-fit: cover;
            }
          }
          .top {
            margin-bottom: 10px;
            height: 200px;
          }
          .bottom {
            height: 90px;
            position: relative;
            .mask {
              position: absolute;
              left: 0;
              top: 0;
              width: 100%;
              height: 100%;
              background: rgba(0, 0, 0, 0.3);
              color: #fff;
              text-align: center;
              font-size: 12px;
              display: flex;
              align-items: center;
              justify-content: center;
              cursor: pointer;
            }
          }
        }
      }
      .right{
        margin-left:20px;
        color:#e9e9e9;
        font-size: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        .btn{
            position: absolute;
            right:20px;
            bottom: 20px;
            padding: 8px 16px;
            background: #000;
            color: #fff;
            border-radius: 10px;
        }
        .title{
            font-weight: 600;
            color: #fff;
            text-align: left;
            font-size: 24px;;
        }
      }
    }
  }
}
</style>
